
<h1><?=$title?></h1>

<?php 


echo "<div class='prikaz'  >";

// prikaz gresaka upisa podataka
echo "<div style='color: red;'>";
echo validation_errors();
echo "</div>";

echo form_open($content_url.'users/new_password_user/'.$id); //pocetak forme

//Atributi labele
$attrib = array(
			'class' => 'labela',
			'style' => 'width:150px;'
				 );

// Ime:
echo form_label("<b>Ime:</b>","firstname",$attrib);

echo $user['firstname'];



echo "<div class='linija'></div>";

//Prezime:
echo form_label("<b>Prezime:</b>","lastname",$attrib);
echo $user['lastname'];
			

echo "<div class='linija'></div>";


//Korisnicko ime:
echo form_label("<b>Username:</b>","username",$attrib);
echo $user['username'];
echo "<div class='linija'></div>";

//E-mail:
echo form_label("<b>E-mail:</b>","e_mail",$attrib);
echo $user['e_mail'];

echo "<div class='linija'></div>";



//Lozinka:
echo form_label("*Password:","password",$attrib);
$atr_ime = array(
			'name'        => 'password',
            'id'          => 'password',
            'maxlength'   => '255',
            'class'       => 'unos'
				);
echo form_password($atr_ime);

echo "<div class='linija'></div>";

//Lozinka (ponovo):
echo form_label("*Password (ponovo):","password1",$attrib);
$atr_ime = array(
			'name'        => 'password1',
            'id'          => 'password1',
            'maxlength'   => '255',
            'class'       => 'unos'
				);
echo form_password($atr_ime);

echo "<div class='linija'></div>";

echo form_label("&nbsp;","",$attrib);

$atr_ime = array(
			'name'        => 'reset',
            'id'          => 'reset',
            'class'       => 'dugme',
				);
echo form_reset($atr_ime,"Poništi");

$atr_ime = array(
			'name'        => 'save',
            'id'          => 'save',
            'class'       => 'dugme'
				);
echo " &nbsp; ";
echo form_submit($atr_ime,"Sačuvaj");

echo form_close();

echo "</div>";
?>
<p><a href="<?=$content_url?>users">< Vrati se na spisak korisnika</a></p>

